diff --git a/.circleci/config.yml b/.circleci/config.yml index cd2a71931..437c2d814 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,6 +41,9 @@ jobs: name: Versions command: npm version - checkout + - run: + name: Uninstall @stylistic/eslint-plugin + command: npm uninstall -D @stylistic/eslint-plugin - run: name: Install eslint@6 command: | @@ -59,6 +62,9 @@ jobs: name: Versions command: npm version - checkout + - run: + name: Uninstall @stylistic/eslint-plugin + command: npm uninstall -D @stylistic/eslint-plugin - run: name: Install eslint@7 command: | @@ -77,6 +83,9 @@ jobs: name: Versions command: npm version - checkout + - run: + name: Uninstall @stylistic/eslint-plugin + command: npm uninstall -D @stylistic/eslint-plugin - run: name: Install @typescript-eslint/parser@4 eslint@7 typescript@4.7 command: | diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index afb8b9ad4..70e4dd7d3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -48,7 +48,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Install Node.js v${{ matrix.node }} + - name: Install Node.js uses: actions/setup-node@v3 with: node-version: 18 @@ -58,3 +58,20 @@ jobs: run: npm install -D @typescript-eslint/parser - name: Test run: npm test + + test-for-eslint-v8-without-eslint-stylistic: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + - name: Install Packages + run: npm install --legacy-peer-deps + - name: Uninstall @stylistic/eslint-plugin + run: npm uninstall -D @stylistic/eslint-plugin + - name: Install eslint v8 + run: npm install -D eslint@8 + - name: Test + run: npm test diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 0e1e21730..a086a2686 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -17,13 +17,13 @@ export default async () => { const uncategorizedRules = rules.filter( (rule) => !rule.meta.docs.categories && - !rule.meta.docs.extensionRule && + !rule.meta.docs.extensionSource && !rule.meta.deprecated ) const uncategorizedExtensionRule = rules.filter( (rule) => !rule.meta.docs.categories && - rule.meta.docs.extensionRule && + rule.meta.docs.extensionSource && !rule.meta.deprecated ) const deprecatedRules = rules.filter((rule) => rule.meta.deprecated) diff --git a/docs/rules/array-bracket-newline.md b/docs/rules/array-bracket-newline.md index e4f9000b4..5085b1da8 100644 --- a/docs/rules/array-bracket-newline.md +++ b/docs/rules/array-bracket-newline.md @@ -11,12 +11,19 @@ since: v7.1.0 - :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule. -This rule is the same rule as core [array-bracket-newline] rule but it applies to the expressions in `