-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.js
32 lines (31 loc) · 1.16 KB
/
.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
31
32
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint'
],
parserOptions: {
jsx: true,
useJSXTextNode: true
},
//plugins: ["@typescript-eslint", "react", "prettier"],
plugins: ['@typescript-eslint'],
settings: {
react: {
version: require('./package.json').dependencies.react
}
},
rules: {
// let prettier control indentation
'@typescript-eslint/indent': 'off',
// these two should be turned off & resolved pre-production, intended to make development less distracting
'@typescript-eslint/no-explicit-any': 'off', // allowed to use 'any' without jackson pollocking the file
'@typescript-eslint/explicit-function-return-type': 'off', // function does not have a return type
'@typescript-eslint/member-delimiter-style': 'off', // semicolons to delemit interface properties? who cares!
'@typescript-eslint/interface-name-prefix': 'off', // its ok to have interfaces start with IAnInterface
'@typescript-eslint/no-unused-vars': 'off',
'import/no-duplicates': 'off',
'import/no-unresolved': 'off'
}
};