-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
34 lines (29 loc) · 1.14 KB
/
index.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
34
module.exports = {
// Stop looking in parent folders once ESLint finds a configuration with "root": true.
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
root: true,
// Use `@babel/eslint-parser` parser, as ESLint does not natively support experimental
// ECMAScript features such as 'dynamic import' or 'class properties'.
// https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
parser: '@babel/eslint-parser',
// https://eslint.org/docs/user-guide/configuring#specifying-parser-options
parserOptions: {
sourceType: 'module',
requireConfigFile: false,
},
extends: [
// https://github.com/standard/standard/blob/master/RULES.md
'standard',
// Turns off all rules that are unnecessary or might conflict with Prettier
// https://github.com/prettier/eslint-config-prettier
'prettier',
],
rules: {
// Disallow the use of console.
// http://eslint.org/docs/rules/no-console
'no-console': 'error',
// Disallow the use of debugger.
// http://eslint.org/docs/rules/no-debugger
'no-debugger': 'error',
},
};