chore(linter): update eslint-config-prettier (#4899)
* chore(linter): update eslint-config-prettier * fix(linter): fix migrations * feat(linter): update migrations * fix(linter): move peer dependency to eslint-plugin-nx Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
This commit is contained in:
parent
48c7c7b6a3
commit
5b0f23a3e4
@ -25468,7 +25468,7 @@ export const mediumGraph: ProjectGraphCache = {
|
|||||||
type: 'npm',
|
type: 'npm',
|
||||||
name: 'npm:eslint-config-prettier',
|
name: 'npm:eslint-config-prettier',
|
||||||
data: {
|
data: {
|
||||||
version: '6.0.0',
|
version: '8.1.0',
|
||||||
packageName: 'eslint-config-prettier',
|
packageName: 'eslint-config-prettier',
|
||||||
files: [],
|
files: [],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -9945,7 +9945,7 @@ export const smallGraph: ProjectGraphCache = {
|
|||||||
type: 'npm',
|
type: 'npm',
|
||||||
name: 'npm:eslint-config-prettier',
|
name: 'npm:eslint-config-prettier',
|
||||||
data: {
|
data: {
|
||||||
version: '6.0.0',
|
version: '8.1.0',
|
||||||
packageName: 'eslint-config-prettier',
|
packageName: 'eslint-config-prettier',
|
||||||
files: [],
|
files: [],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -149,7 +149,7 @@
|
|||||||
"dotenv": "6.2.0",
|
"dotenv": "6.2.0",
|
||||||
"ejs": "^3.1.5",
|
"ejs": "^3.1.5",
|
||||||
"eslint": "7.10.0",
|
"eslint": "7.10.0",
|
||||||
"eslint-config-prettier": "^7.1.0",
|
"eslint-config-prettier": "^8.1.0",
|
||||||
"eslint-plugin-cypress": "^2.10.3",
|
"eslint-plugin-cypress": "^2.10.3",
|
||||||
"express": "4.17.1",
|
"express": "4.17.1",
|
||||||
"file-loader": "4.2.0",
|
"file-loader": "4.2.0",
|
||||||
|
|||||||
@ -28,7 +28,8 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://nx.dev",
|
"homepage": "https://nx.dev",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@typescript-eslint/parser": "^4.3.0"
|
"@typescript-eslint/parser": "^4.3.0",
|
||||||
|
"eslint-config-prettier": "^8.1.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nrwl/devkit": "*",
|
"@nrwl/devkit": "*",
|
||||||
|
|||||||
@ -30,7 +30,6 @@ export default {
|
|||||||
'plugin:@typescript-eslint/eslint-recommended',
|
'plugin:@typescript-eslint/eslint-recommended',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
'prettier',
|
'prettier',
|
||||||
'prettier/@typescript-eslint',
|
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/explicit-member-accessibility': 'off',
|
'@typescript-eslint/explicit-member-accessibility': 'off',
|
||||||
|
|||||||
@ -25,7 +25,6 @@ export default {
|
|||||||
'plugin:@typescript-eslint/eslint-recommended',
|
'plugin:@typescript-eslint/eslint-recommended',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
'prettier',
|
'prettier',
|
||||||
'prettier/@typescript-eslint',
|
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/explicit-member-accessibility': 'off',
|
'@typescript-eslint/explicit-member-accessibility': 'off',
|
||||||
|
|||||||
@ -58,6 +58,15 @@
|
|||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"11.5.0": {
|
||||||
|
"version": "11.5.0-beta.0",
|
||||||
|
"packages": {
|
||||||
|
"eslint-config-prettier": {
|
||||||
|
"version": "8.1.0",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import { Tree } from '@angular-devkit/schematics';
|
import { Tree } from '@angular-devkit/schematics';
|
||||||
import {
|
import {
|
||||||
readJsonInTree,
|
|
||||||
readWorkspace,
|
readWorkspace,
|
||||||
updateJsonInTree,
|
updateJsonInTree,
|
||||||
updateWorkspace,
|
updateWorkspace,
|
||||||
|
|||||||
@ -5,10 +5,10 @@ import type { Linter } from 'eslint';
|
|||||||
import { runMigration } from '../../utils/testing';
|
import { runMigration } from '../../utils/testing';
|
||||||
import {
|
import {
|
||||||
updateExtendsAndRemoveDuplication,
|
updateExtendsAndRemoveDuplication,
|
||||||
|
updateObjPropAndRemoveDuplication,
|
||||||
updateOverridesAndRemoveDuplication,
|
updateOverridesAndRemoveDuplication,
|
||||||
updateParserOptionsAndRemoveDuplication,
|
updateParserOptionsAndRemoveDuplication,
|
||||||
updatePluginsAndRemoveDuplication,
|
updatePluginsAndRemoveDuplication,
|
||||||
updateObjPropAndRemoveDuplication,
|
|
||||||
} from './update-eslint-configs-to-use-nx-presets';
|
} from './update-eslint-configs-to-use-nx-presets';
|
||||||
|
|
||||||
describe('Update ESLint config files to use preset configs which eslint-plugin-nx exports', () => {
|
describe('Update ESLint config files to use preset configs which eslint-plugin-nx exports', () => {
|
||||||
|
|||||||
@ -5,4 +5,4 @@ export const buildAngularVersion = '~0.1102.0';
|
|||||||
|
|
||||||
export const typescriptESLintVersion = '4.3.0';
|
export const typescriptESLintVersion = '4.3.0';
|
||||||
export const eslintVersion = '7.10.0';
|
export const eslintVersion = '7.10.0';
|
||||||
export const eslintConfigPrettierVersion = '6.0.0';
|
export const eslintConfigPrettierVersion = '8.1.0';
|
||||||
|
|||||||
@ -7,4 +7,4 @@ export const prettierVersion = '2.2.1';
|
|||||||
export const typescriptESLintVersion = '4.3.0';
|
export const typescriptESLintVersion = '4.3.0';
|
||||||
export const tslintVersion = '~6.1.0';
|
export const tslintVersion = '~6.1.0';
|
||||||
export const eslintVersion = '7.10.0';
|
export const eslintVersion = '7.10.0';
|
||||||
export const eslintConfigPrettierVersion = '6.0.0';
|
export const eslintConfigPrettierVersion = '8.1.0';
|
||||||
|
|||||||
@ -10868,10 +10868,10 @@ escodegen@^1.11.1, escodegen@^1.14.1:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
source-map "~0.6.1"
|
source-map "~0.6.1"
|
||||||
|
|
||||||
eslint-config-prettier@^7.1.0:
|
eslint-config-prettier@^8.1.0:
|
||||||
version "7.1.0"
|
version "8.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz#5402eb559aa94b894effd6bddfa0b1ca051c858f"
|
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.1.0.tgz#4ef1eaf97afe5176e6a75ddfb57c335121abc5a6"
|
||||||
integrity sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA==
|
integrity sha512-oKMhGv3ihGbCIimCAjqkdzx2Q+jthoqnXSP+d86M9tptwugycmTFdVR4IpLgq2c4SHifbwO90z2fQ8/Aio73yw==
|
||||||
|
|
||||||
eslint-plugin-cypress@^2.10.3:
|
eslint-plugin-cypress@^2.10.3:
|
||||||
version "2.11.2"
|
version "2.11.2"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user