Skip to content

Commit

Permalink
Merge pull request #63 from madscience/renovate/major-eslint
Browse files Browse the repository at this point in the history
Update eslint (major)
  • Loading branch information
sgarner authored Aug 21, 2020
2 parents bd22a05 + ce32319 commit 72c7a93
Show file tree
Hide file tree
Showing 8 changed files with 332 additions and 177 deletions.
36 changes: 31 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
],
plugins: [
'@typescript-eslint',
'prettier',
],
plugins: ['@typescript-eslint', 'prettier', 'import'],
settings: {
'import/resolver': {
// use <root>/tsconfig.json
typescript: {
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
},
},
},
// add your custom rules here
rules: {
semi: ['error', 'always'],
Expand Down Expand Up @@ -61,13 +69,31 @@ module.exports = {
allowExpressions: true,
},
],
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
pathGroups: [
{
pattern: '~/**',
group: 'internal',
position: 'before',
},
],
},
],
'import/default': 'off',
'import/named': 'off',
'import/no-named-as-default-member': 'off',
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
{
Expand Down
Loading

0 comments on commit 72c7a93

Please sign in to comment.