Scoped babel packages and stricter proposals
[incubator-annotator.git] / .eslintrc.yml
1 root: true
2
3 env:
4   es6: true
5   shared-node-browser: true
6
7 extends:
8   - eslint:recommended
9   - plugin:import/recommended
10   - prettier
11
12 globals:
13   global: true
14
15 parser: babel-eslint
16
17 parserOptions:
18   ecmaVersion: 2017
19   ecmaFeatures:
20     experimentalObjectRestSpread: true
21     globalReturn: false
22
23 plugins:
24   - import
25   - node
26   - prettier
27
28 rules:
29   import/order: error
30   import/unambiguous: error
31   no-restricted-syntax:
32     - error
33     - BindExpression
34     - ClassProperty
35     - Decorator
36     - DoExpression
37     - ExportDefaultSpecifier
38     - ExportNamespaceSpecifier
39     - TypeAnnotation
40     - JSXElement
41   prettier/prettier:
42     - error
43     - singleQuote: true
44       trailingComma: es5
45
46 settings:
47   import/extensions: ['.mjs', '.js']
48
49 overrides:
50   - files: ['**/*.mjs']
51     parser: espree
52     parserOptions:
53       ecmaFeatures:
54         experimentalObjectRestSpread: false
55     plugins:
56       - node
57     rules:
58       no-console: off
59       node/no-unsupported-features:
60         - error
61         - ignores:
62             - modules
63   - files: ['demo/**/*.js']
64     env:
65       browser: true
66     settings:
67       import/resolver: webpack