Skip to content

Commit

Permalink
Revert "fix: temporarily disable canonical plugin"
Browse files Browse the repository at this point in the history
This reverts commit caa6c4a.
  • Loading branch information
gajus committed Oct 26, 2021
1 parent 047c774 commit e9a334b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
{
"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
"eslint-plugin/require-meta-type": 0,
"unicorn/prevent-abbreviations": 0
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"ajv": "^8.6.3",
"babel-plugin-add-module-exports": "^1.0.4",
"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: 1 addition & 0 deletions src/bin/addAssertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const getAssertions = () => {
});

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

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

// eslint-disable-next-line promise/prefer-await-to-callbacks -- not a promise callback
return cb(context);
};
2 changes: 2 additions & 0 deletions src/utilities/getBuiltinRule.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* 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: 1 addition & 0 deletions src/utilities/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @flow

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

export {
Expand Down
1 change: 1 addition & 0 deletions tests/rules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ 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 e9a334b

Please sign in to comment.