Skip to content

Commit

Permalink
feat: eslint-utils => @eslint-community/eslint-utils
Browse files Browse the repository at this point in the history
eslint-plugin-eslint-comments => @eslint-community/eslint-plugin-eslint-comments
  • Loading branch information
aladdin-add committed Apr 30, 2024
1 parent 5bbc30a commit 4cd7815
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 22 deletions.
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const compat = new FlatCompat({
module.exports = [
...compat.extends(
'not-an-aardvark/node',
'plugin:eslint-comments/recommended',
'plugin:@eslint-community/eslint-comments/recommended',
'plugin:prettier/recommended',
'plugin:unicorn/recommended',
),
pluginN.configs['flat/recommended'],
{
rules: {
'eslint-comments/no-unused-disable': 'error',
'eslint-comments/require-description': 'error',
'@eslint-community/eslint-comments/no-unused-disable': 'error',
'@eslint-community/eslint-comments/require-description': 'error',

'unicorn/consistent-function-scoping': 'off',
'unicorn/no-array-callback-reference': 'off',
Expand Down Expand Up @@ -70,7 +70,7 @@ module.exports = [
'no-unused-vars': 'off',
strict: 'off',

'eslint-comments/require-description': 'off',
'@eslint-community/eslint-comments/require-description': 'off',

'unicorn/filename-case': 'off',
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/fixer-return.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// ------------------------------------------------------------------------------

const utils = require('../utils');
const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');

// ------------------------------------------------------------------------------
// Rule Definition
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-missing-placeholders.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'use strict';

const utils = require('../utils');
const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');

// ------------------------------------------------------------------------------
// Rule Definition
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-only-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
isCommaToken,
isOpeningBraceToken,
isClosingBraceToken,
} = require('eslint-utils');
} = require('@eslint-community/eslint-utils');

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unused-placeholders.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'use strict';

const utils = require('../utils');
const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');

// ------------------------------------------------------------------------------
// Rule Definition
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-message-ids.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const utils = require('../utils');
const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');

// ------------------------------------------------------------------------------
// Rule Definition
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-placeholders.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'use strict';

const utils = require('../utils');
const { findVariable } = require('eslint-utils');
const { findVariable } = require('@eslint-community/eslint-utils');

// ------------------------------------------------------------------------------
// Rule Definition
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/report-message-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');
const utils = require('../utils');

// ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-docs-description.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');
const utils = require('../utils');

// ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-docs-recommended.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');
const utils = require('../utils');

/** @type {import('eslint').Rule.RuleModule} */
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-docs-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

const path = require('path');
const utils = require('../utils');
const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');

// -----------------------------------------------------------------------------
// Rule Definition
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-fixable.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');
const utils = require('../utils');

// ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-has-suggestions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const utils = require('../utils');
const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');

// ------------------------------------------------------------------------------
// Rule Definition
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-schema.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { findVariable } = require('eslint-utils');
const { findVariable } = require('@eslint-community/eslint-utils');
const utils = require('../utils');

// ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const { getStaticValue } = require('eslint-utils');
const { getStaticValue } = require('@eslint-community/eslint-utils');
const utils = require('../utils');
const VALID_TYPES = new Set(['problem', 'suggestion', 'layout']);

Expand Down
5 changes: 4 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict';

const { getStaticValue, findVariable } = require('eslint-utils');
const {
getStaticValue,
findVariable,
} = require('@eslint-community/eslint-utils');
const estraverse = require('estraverse');

const functionTypes = new Set([
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"homepage": "https://github.com/eslint-community/eslint-plugin-eslint-plugin#readme",
"dependencies": {
"eslint-utils": "^3.0.0",
"@eslint-community/eslint-utils": "^4.4.0",
"estraverse": "^5.3.0"
},
"nyc": {
Expand All @@ -52,6 +52,7 @@
"devDependencies": {
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
"@eslint/eslintrc": "^3.0.2",
"@eslint/js": "^9.0.0",
"@release-it/conventional-changelog": "^8.0.1",
Expand All @@ -61,11 +62,10 @@
"@typescript-eslint/utils": "^7.7.0",
"chai": "^4.4.1",
"dirty-chai": "^2.0.1",
"eslint": "^9.0.0",
"eslint": "^9.1.1",
"eslint-config-not-an-aardvark": "^2.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-doc-generator": "^1.7.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-eslint-plugin": "file:./",
"eslint-plugin-markdown": "^4.0.1",
"eslint-plugin-n": "^17.2.1",
Expand Down

0 comments on commit 4cd7815

Please sign in to comment.