chore: Nx 11.5 and @nativescript/eslint-plugin

This commit is contained in:
Nathan Walker
2021-03-25 21:35:11 -07:00
parent eeb68e9ce2
commit ccc7c59ac8
4 changed files with 38 additions and 64 deletions

View File

@@ -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": {}
}
]
} }

View File

@@ -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",

View File

@@ -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": {}
}
]
} }

View File

@@ -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",