Skip to content

Commit 9673820

Browse files
committed
build: update esling config
1 parent 1dc80d3 commit 9673820

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

.eslintrc.js

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1+
/**
2+
* Copyright (c) 2013-present, creativeLabs Lukasz Holeczek.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict'
9+
110
module.exports = {
11+
root: true, // So parent files don't get applied
12+
env: {
13+
es6: true,
14+
browser: true,
15+
node: true,
16+
},
217
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
318
parserOptions: {
419
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
@@ -29,13 +44,11 @@ module.exports = {
2944
{
3045
files: ['**/*.mjs'],
3146
env: {
32-
env: {
33-
browser: false,
34-
node: true,
35-
},
36-
parserOptions: {
37-
sourceType: 'module',
38-
},
47+
browser: false,
48+
node: true,
49+
},
50+
parserOptions: {
51+
sourceType: 'module',
3952
},
4053
},
4154
{
@@ -47,17 +60,15 @@ module.exports = {
4760
{
4861
files: ['packages/docs/build/**'],
4962
env: {
50-
env: {
51-
browser: false,
52-
node: true,
53-
},
54-
parserOptions: {
55-
sourceType: 'script',
56-
},
57-
rules: {
58-
'no-console': 'off',
59-
strict: 'error',
60-
},
63+
browser: false,
64+
node: true,
65+
},
66+
parserOptions: {
67+
sourceType: 'script',
68+
},
69+
rules: {
70+
'no-console': 'off',
71+
strict: 'error',
6172
},
6273
},
6374
],

0 commit comments

Comments
 (0)