mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: Nx 11.5 and @nativescript/eslint-plugin
This commit is contained in:
@@ -1,57 +1,13 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"parser": "@typescript-eslint/parser",
|
||||||
"ignorePatterns": ["**/*"],
|
"parserOptions": {
|
||||||
"plugins": ["@nrwl/nx"],
|
"sourceType": "module",
|
||||||
"overrides": [
|
"ecmaVersion": 2015
|
||||||
{
|
},
|
||||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
"plugins": ["@nativescript"],
|
||||||
"extends": ["plugin:prettier/recommended"],
|
"rules": {
|
||||||
"parserOptions": {
|
"@nativescript/no-nativescript-angular-imports": "warn",
|
||||||
"project": ["packages/core/tsconfig.json", "packages/webpack/tsconfig.json"]
|
"@nativescript/no-tns-core-modules-imports": "warn",
|
||||||
},
|
"@nativescript/no-duplicate-ns-imports": "warn"
|
||||||
"plugins": ["prettier"],
|
}
|
||||||
"rules": {
|
|
||||||
"prettier/prettier": "warn",
|
|
||||||
"@typescript-eslint/no-empty-function": "off",
|
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
|
||||||
"@typescript-eslint/no-namespace": "off",
|
|
||||||
"@typescript-eslint/ban-types": "off",
|
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
|
||||||
"@typescript-eslint/no-this-alias": "off",
|
|
||||||
"@typescript-eslint/no-empty-interface": "off",
|
|
||||||
"@typescript-eslint/triple-slash-reference": "off",
|
|
||||||
"no-prototype-builtins": "off",
|
|
||||||
"no-inner-declarations": "off",
|
|
||||||
"no-constant-condition": "off",
|
|
||||||
"no-useless-escape": "off",
|
|
||||||
"@nrwl/nx/enforce-module-boundaries": [
|
|
||||||
"error",
|
|
||||||
{
|
|
||||||
"enforceBuildableLibDependency": true,
|
|
||||||
"allow": [],
|
|
||||||
"depConstraints": [
|
|
||||||
{
|
|
||||||
"sourceTag": "*",
|
|
||||||
"onlyDependOnLibsWithTags": ["*"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["*.ts", "*.tsx"],
|
|
||||||
"extends": ["plugin:@nrwl/nx/typescript"],
|
|
||||||
"parserOptions": {
|
|
||||||
"project": "./tsconfig.*?.json"
|
|
||||||
},
|
|
||||||
"rules": {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["*.js", "*.jsx"],
|
|
||||||
"extends": ["plugin:@nrwl/nx/javascript"],
|
|
||||||
"rules": {}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
15
package.json
15
package.json
@@ -20,13 +20,14 @@
|
|||||||
"nativescript-theme-core": "^1.0.4"
|
"nativescript-theme-core": "^1.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@nativescript/eslint-plugin": "0.0.1",
|
||||||
"@nativescript/hook": "^2.0.0",
|
"@nativescript/hook": "^2.0.0",
|
||||||
"@nrwl/cli": "11.4.0",
|
"@nrwl/cli": "11.5.2",
|
||||||
"@nrwl/eslint-plugin-nx": "11.4.0",
|
"@nrwl/eslint-plugin-nx": "11.5.2",
|
||||||
"@nrwl/jest": "11.4.0",
|
"@nrwl/jest": "11.5.2",
|
||||||
"@nrwl/node": "11.4.0",
|
"@nrwl/node": "11.5.2",
|
||||||
"@nrwl/tao": "11.4.0",
|
"@nrwl/tao": "11.5.2",
|
||||||
"@nrwl/workspace": "11.4.0",
|
"@nrwl/workspace": "11.5.2",
|
||||||
"@nstudio/focus": "~11.1.0",
|
"@nstudio/focus": "~11.1.0",
|
||||||
"@nstudio/nps-i": "~1.1.0",
|
"@nstudio/nps-i": "~1.1.0",
|
||||||
"@prettier/plugin-xml": "^0.13.1",
|
"@prettier/plugin-xml": "^0.13.1",
|
||||||
@@ -43,7 +44,7 @@
|
|||||||
"css-tree": "^1.0.0-alpha.39",
|
"css-tree": "^1.0.0-alpha.39",
|
||||||
"dotenv": "~8.2.0",
|
"dotenv": "~8.2.0",
|
||||||
"eslint": "~7.21.0",
|
"eslint": "~7.21.0",
|
||||||
"eslint-config-prettier": "~8.1.0",
|
"eslint-config-prettier": "8.1.0",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^3.3.1",
|
||||||
"gonzales": "^1.0.7",
|
"gonzales": "^1.0.7",
|
||||||
"husky": "^5.1.3",
|
"husky": "^5.1.3",
|
||||||
|
|||||||
@@ -1,5 +1,22 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../.eslintrc",
|
"extends": "../../.eslintrc",
|
||||||
"rules": {},
|
"rules": {},
|
||||||
"ignorePatterns": ["!**/*"]
|
"ignorePatterns": ["!**/*"],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||||
|
"parserOptions": {
|
||||||
|
"project": ["packages/core/tsconfig.*?.json"]
|
||||||
|
},
|
||||||
|
"rules": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.ts", "*.tsx"],
|
||||||
|
"rules": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.js", "*.jsx"],
|
||||||
|
"rules": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"main": "index",
|
"main": "index",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"description": "NativeScript Core Modules",
|
"description": "NativeScript Core Modules",
|
||||||
"version": "8.0.0-alpha.4",
|
"version": "8.0.0-alpha.5",
|
||||||
"homepage": "https://nativescript.org",
|
"homepage": "https://nativescript.org",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user