Skip to content

Commit

Permalink
fix: temporarily disable canonical plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 26, 2021
1 parent 5b6cda2 commit caa6c4a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
13 changes: 10 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"parserOptions": {
"ecmaFeatures": {
"globalReturn": false,
"impliedStrict": true,
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module"
},
"extends": [
"canonical",
"plugin:eslint-plugin/recommended"
],
"rules": {
"eslint-plugin/require-meta-schema": 0,
"eslint-plugin/require-meta-type": 0,
"unicorn/prevent-abbreviations": 0
"eslint-plugin/require-meta-type": 0
}
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"chai": "^4.3.4",
"eclint": "^2.8.1",
"eslint": "^8.1.0",
"eslint-config-canonical": "^32.0.1",
"eslint-plugin-eslint-plugin": "^4.0.1",
"gitdown": "^3.1.4",
"glob": "^7.2.0",
Expand Down
1 change: 0 additions & 1 deletion src/bin/addAssertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const getAssertions = () => {
});

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

return {
Expand Down
1 change: 0 additions & 1 deletion src/utilities/checkFlowFileAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ export default (cb, context) => {
return () => {};
}

// eslint-disable-next-line promise/prefer-await-to-callbacks -- not a promise callback
return cb(context);
};
2 changes: 0 additions & 2 deletions src/utilities/getBuiltinRule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-dynamic-require */

/**
* Adopted from https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/rules/utils/get-builtin-rule.js.
*/
Expand Down
1 change: 0 additions & 1 deletion src/utilities/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @flow

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

export {
Expand Down
1 change: 0 additions & 1 deletion tests/rules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ const ajv = new Ajv({
});

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

if (assertions.misconfigured) {
Expand Down

0 comments on commit caa6c4a

Please sign in to comment.