forked from MoeYc/svg-webgl-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (32 loc) · 867 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
31
32
33
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
},
extends: ['standard', 'plugin:prettier/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
location: 'readonly',
it: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
camelcase: 'off',
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#i-am-using-a-rule-from-eslint-core-and-it-doesnt-work-correctly-with-typescript-code
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'promise/param-names': 'off',
},
};