-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (29 loc) · 855 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = {
parser : '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion : 2018, // Allows for the parsing of modern ECMAScript features
sourceType : 'module', // Allows for the use of imports
ecmaFeatures: {},
},
'extends': [ '@dking/typescript' ],
settings : {
'import/parsers': {
'@typescript-eslint/parser': [
'.ts',
'.tsx',
],
},
'import/resolver': {
// use <root>/path/to/folder/tsconfig.json
typescript: { directory: './tsconfig.json' },
},
},
env: {
browser : true, // enable all browser global variables
commonjs: true,
es6 : true,
jest : true,
node : true,
},
rules: {},
};