forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
29 lines (29 loc) · 804 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
module.exports = {
env: {
browser: true,
node: true,
jquery: true,
},
parserOptions: {
ecmaVersion: 2017,
sourceType: 'script',
},
plugins: ['html'],
settings: {
'html/indent': '+2',
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
globals: {
feather: 'readonly',
bootstrap: 'readonly',
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
'no-var': 'warn',
'no-unused-vars': 'warn',
},
};