Skip to content

Commit 8bf919e

Browse files
committed
[eslint config] [base] [breaking] Set 'strict' to 'never'
Previously `rules/strict.js` was only used by `eslint-config-airbnb` and not base. This change reduces the duplication, and means the rule is now set to 'never' as opposed to the ESLint default of 'safe'. For users that left the `sourceType` at this preset's default of `module` this change will be a no-op, since in module-mode the `strict` rule always behaves as though 'never' had been set. See: https://eslint.org/docs/rules/strict#options
1 parent 1f48d14 commit 8bf919e

File tree

1 file changed

+2
-3
lines changed
  • packages/eslint-config-airbnb-base

1 file changed

+2
-3
lines changed

packages/eslint-config-airbnb-base/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ module.exports = {
77
'./rules/variables',
88
'./rules/es6',
99
'./rules/imports',
10+
'./rules/strict',
1011
].map(require.resolve),
1112
parserOptions: {
1213
ecmaVersion: 2018,
1314
sourceType: 'module',
1415
},
15-
rules: {
16-
strict: 'error',
17-
},
16+
rules: {},
1817
};

0 commit comments

Comments
 (0)