Skip to content

Commit

Permalink
Merge 4e06bd8 into 5126356
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Aug 26, 2020
2 parents 5126356 + 4e06bd8 commit c2f17d0
Show file tree
Hide file tree
Showing 74 changed files with 771 additions and 236 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ module.exports = {
},
plugins: [
'eslint-plugin-tsdoc',
'eslint-plugin-import',
'eslint-plugin-unused-imports'
],
extends: [
'es/node',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript'
],
settings: {
'import/resolver': {
'typescript': {
'alwaysTryTypes': true // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/rdf-js`
},
}
},
rules: {
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off', // problems with optional parameters
Expand All @@ -24,5 +36,15 @@ module.exports = {
'padding-line-between-statements': 'off',
'tsdoc/syntax': 'error',
'prefer-named-capture-group': 'off',

// Import
'sort-imports': 'off', // Disabled in favor of eslint-plugin-import
'import/order': ['error', {
alphabetize: {
order: 'asc',
caseInsensitive: true
}
}],
'unused-imports/no-unused-imports-ts': 'error',
},
};
Loading

0 comments on commit c2f17d0

Please sign in to comment.