You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1018 B
40 lines
1018 B
|
6 years ago
|
module.exports = {
|
||
|
|
env: {
|
||
|
|
browser: true,
|
||
|
|
es6: true,
|
||
|
|
node: true
|
||
|
|
},
|
||
|
|
parser: '@typescript-eslint/parser',
|
||
|
|
parserOptions: {
|
||
|
|
sourceType: 'module',
|
||
|
|
project: './tsconfig.json'
|
||
|
|
},
|
||
|
|
plugins: ['@typescript-eslint', 'import', 'prettier'],
|
||
|
|
settings: {
|
||
|
|
'import/extensions': ['.ts'],
|
||
|
|
'import/parsers': {
|
||
|
|
'@typescript-eslint/parser': ['.ts']
|
||
|
|
},
|
||
|
|
'import/resolver': {
|
||
|
|
node: {
|
||
|
|
extensions: ['.js', '.ts']
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
extends: [
|
||
|
|
'eslint:recommended',
|
||
|
|
'./.eslint.base.yml',
|
||
|
|
'plugin:@typescript-eslint/eslint-recommended', // Turn off conflicting rules
|
||
|
|
|
||
|
|
'plugin:@typescript-eslint/recommended',
|
||
|
|
'./.eslint.typescript.yml',
|
||
|
|
'prettier', // Turn off conflicting rules
|
||
|
|
'prettier/@typescript-eslint', // Turn off conflicting rules
|
||
|
|
|
||
|
|
'./.eslint.import.yml'
|
||
|
|
],
|
||
|
|
rules: {
|
||
|
|
'prettier/prettier': 'warn'
|
||
|
|
}
|
||
|
|
}
|