Skip to content

Commit caa6c4a

Browse files
committed
fix: temporarily disable canonical plugin
1 parent 5b6cda2 commit caa6c4a

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

.eslintrc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
{
2+
"parserOptions": {
3+
"ecmaFeatures": {
4+
"globalReturn": false,
5+
"impliedStrict": true,
6+
"jsx": true
7+
},
8+
"ecmaVersion": 2021,
9+
"sourceType": "module"
10+
},
211
"extends": [
3-
"canonical",
412
"plugin:eslint-plugin/recommended"
513
],
614
"rules": {
715
"eslint-plugin/require-meta-schema": 0,
8-
"eslint-plugin/require-meta-type": 0,
9-
"unicorn/prevent-abbreviations": 0
16+
"eslint-plugin/require-meta-type": 0
1017
}
1118
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"chai": "^4.3.4",
2525
"eclint": "^2.8.1",
2626
"eslint": "^8.1.0",
27-
"eslint-config-canonical": "^32.0.1",
2827
"eslint-plugin-eslint-plugin": "^4.0.1",
2928
"gitdown": "^3.1.4",
3029
"glob": "^7.2.0",

src/bin/addAssertions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const getAssertions = () => {
4343
});
4444

4545
const assertionCodes = _.map(assertionFiles, (filePath) => {
46-
// eslint-disable-next-line import/no-dynamic-require
4746
const codes = require(filePath);
4847

4948
return {

src/utilities/checkFlowFileAnnotation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ export default (cb, context) => {
99
return () => {};
1010
}
1111

12-
// eslint-disable-next-line promise/prefer-await-to-callbacks -- not a promise callback
1312
return cb(context);
1413
};

src/utilities/getBuiltinRule.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable import/no-dynamic-require */
2-
31
/**
42
* Adopted from https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/rules/utils/get-builtin-rule.js.
53
*/

src/utilities/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @flow
22

3-
// eslint-disable-next-line import/no-namespace
43
import * as spacingFixers from './spacingFixers';
54

65
export {

tests/rules/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ const ajv = new Ajv({
7676
});
7777

7878
for (const ruleName of reportingRules) {
79-
// eslint-disable-next-line import/no-dynamic-require
8079
const assertions = require('./assertions/' + camelCase(ruleName));
8180

8281
if (assertions.misconfigured) {

0 commit comments

Comments
 (0)