@anexia/eslint-config-marine
Advanced tools
Comparing version 1.1.1 to 2.0.0
const path = require('path'); | ||
module.exports = { | ||
extends: [path.join(__dirname, 'index.js')], | ||
extends: ['plugin:@angular-eslint/recommended', path.join(__dirname, 'index.js')], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'error', | ||
{ | ||
allowExpressions: true, | ||
}, | ||
], | ||
'@typescript-eslint/naming-convention': 0, | ||
'@typescript-eslint/no-floating-promises': 0, | ||
'@typescript-eslint/no-extraneous-class': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
}, | ||
}, | ||
{ | ||
files: ['*.component.html'], | ||
files: ['*.html'], | ||
extends: ['plugin:@angular-eslint/template/recommended'], | ||
@@ -27,2 +12,14 @@ rules: {}, | ||
], | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'error', | ||
{ | ||
allowExpressions: true, | ||
}, | ||
], | ||
'@typescript-eslint/naming-convention': 0, | ||
'@typescript-eslint/no-floating-promises': 0, | ||
'@typescript-eslint/no-extraneous-class': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
}, | ||
}; |
185
index.js
module.exports = { | ||
extends: ['@anexia/eslint-config-aqua'], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
], | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'@anexia/eslint-config-aqua', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
rules: { | ||
'@typescript-eslint/array-type': 0, | ||
'@typescript-eslint/await-thenable': 0, | ||
'@typescript-eslint/ban-ts-ignore': 0, | ||
'@typescript-eslint/consistent-type-assertions': [ | ||
2, | ||
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' }, | ||
], | ||
'@typescript-eslint/consistent-type-definitions': [2, 'interface'], | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/explicit-member-accessibility': 2, | ||
'@typescript-eslint/interface-name-prefix': 0, | ||
'@typescript-eslint/member-delimiter-style': 2, | ||
'@typescript-eslint/member-ordering': 0, | ||
'@typescript-eslint/naming-convention': 0, | ||
'@typescript-eslint/no-base-to-string': 2, | ||
'@typescript-eslint/no-dynamic-delete': 2, | ||
'@typescript-eslint/no-empty-interface': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-extraneous-class': 2, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'@typescript-eslint/no-require-imports': 2, | ||
'@typescript-eslint/no-throw-literal': 2, | ||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 2, | ||
'@typescript-eslint/no-unnecessary-condition': 2, | ||
'@typescript-eslint/no-unnecessary-type-arguments': 2, | ||
'@typescript-eslint/prefer-for-of': 2, | ||
'@typescript-eslint/prefer-function-type': 2, | ||
'@typescript-eslint/prefer-includes': 2, | ||
'@typescript-eslint/prefer-nullish-coalescing': 2, | ||
'@typescript-eslint/prefer-optional-chain': 2, | ||
'@typescript-eslint/prefer-readonly': 2, | ||
'@typescript-eslint/switch-exhaustiveness-check': 2, | ||
'@typescript-eslint/type-annotation-spacing': 2, | ||
'@typescript-eslint/unified-signatures': 2, | ||
'brace-style': 0, | ||
'@typescript-eslint/brace-style': [2, '1tbs', { allowSingleLine: true }], | ||
'comma-spacing': 0, | ||
'@typescript-eslint/comma-spacing': [2, { before: false, after: true }], | ||
'dot-notation': 0, | ||
'@typescript-eslint/dot-notation': [2, { allowKeywords: true, allowPattern: '(^[A-Z])|(^[a-z]+(_[a-z]+)+$)' }], | ||
'func-call-spacing': 0, | ||
'@typescript-eslint/func-call-spacing': [2, 'never'], | ||
'keyword-spacing': 0, | ||
'@typescript-eslint/keyword-spacing': [2, { before: true, after: true }], | ||
'lines-between-class-members': 0, | ||
'@typescript-eslint/lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }], | ||
'no-dupe-class-members': 0, | ||
'@typescript-eslint/no-dupe-class-members': 2, | ||
'no-extra-semi': 0, | ||
'@typescript-eslint/no-extra-semi': 2, | ||
'no-useless-constructor': 0, | ||
'@typescript-eslint/no-useless-constructor': 2, | ||
indent: 0, | ||
'@typescript-eslint/indent': [2, 'tab'], | ||
'no-unused-vars': 0, | ||
'@typescript-eslint/no-unused-vars': [ | ||
2, | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
ignoreRestSiblings: true, | ||
}, | ||
rules: { | ||
'@typescript-eslint/array-type': 0, | ||
'@typescript-eslint/await-thenable': 0, | ||
'@typescript-eslint/ban-ts-ignore': 0, | ||
'@typescript-eslint/consistent-type-assertions': [ | ||
2, | ||
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' }, | ||
], | ||
'@typescript-eslint/consistent-type-definitions': [2, 'interface'], | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/explicit-member-accessibility': 2, | ||
'@typescript-eslint/interface-name-prefix': 0, | ||
'@typescript-eslint/member-delimiter-style': 2, | ||
'@typescript-eslint/member-ordering': 0, | ||
'@typescript-eslint/naming-convention': 2, | ||
'@typescript-eslint/no-base-to-string': 2, | ||
'@typescript-eslint/no-dynamic-delete': 2, | ||
'@typescript-eslint/no-empty-interface': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-extraneous-class': 2, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'@typescript-eslint/no-require-imports': 2, | ||
'@typescript-eslint/no-throw-literal': 2, | ||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 2, | ||
'@typescript-eslint/no-unnecessary-condition': 2, | ||
'@typescript-eslint/no-unnecessary-type-arguments': 2, | ||
'@typescript-eslint/prefer-for-of': 2, | ||
'@typescript-eslint/prefer-function-type': 2, | ||
'@typescript-eslint/prefer-includes': 2, | ||
'@typescript-eslint/prefer-nullish-coalescing': 2, | ||
'@typescript-eslint/prefer-optional-chain': 2, | ||
'@typescript-eslint/prefer-readonly': 2, | ||
'@typescript-eslint/switch-exhaustiveness-check': 2, | ||
'@typescript-eslint/type-annotation-spacing': 2, | ||
'@typescript-eslint/unified-signatures': 2, | ||
], | ||
quotes: 0, | ||
'@typescript-eslint/quotes': [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }], | ||
semi: 0, | ||
'@typescript-eslint/semi': 2, | ||
'space-before-function-paren': 0, | ||
'@typescript-eslint/space-before-function-paren': [2, { anonymous: 'never', named: 'never', asyncArrow: 'always' }], | ||
'brace-style': 0, | ||
'@typescript-eslint/brace-style': [2, '1tbs', { allowSingleLine: true }], | ||
'comma-spacing': 0, | ||
'@typescript-eslint/comma-spacing': [2, { before: false, after: true }], | ||
'dot-notation': 0, | ||
'@typescript-eslint/dot-notation': [2, { allowKeywords: true, allowPattern: '(^[A-Z])|(^[a-z]+(_[a-z]+)+$)' }], | ||
'func-call-spacing': 0, | ||
'@typescript-eslint/func-call-spacing': [2, 'never'], | ||
'keyword-spacing': 0, | ||
'@typescript-eslint/keyword-spacing': [2, { before: true, after: true }], | ||
'lines-between-class-members': 0, | ||
'@typescript-eslint/lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }], | ||
'no-dupe-class-members': 0, | ||
'@typescript-eslint/no-dupe-class-members': 2, | ||
'no-extra-semi': 0, | ||
'@typescript-eslint/no-extra-semi': 2, | ||
'no-useless-constructor': 0, | ||
'@typescript-eslint/no-useless-constructor': 2, | ||
indent: 0, | ||
'@typescript-eslint/indent': [2, 'tab'], | ||
'no-unused-vars': 0, | ||
'@typescript-eslint/no-unused-vars': [ | ||
2, | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
quotes: 0, | ||
'@typescript-eslint/quotes': [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }], | ||
semi: 0, | ||
'@typescript-eslint/semi': 2, | ||
'space-before-function-paren': 0, | ||
'@typescript-eslint/space-before-function-paren': [ | ||
2, | ||
{ anonymous: 'never', named: 'never', asyncArrow: 'always' }, | ||
], | ||
'no-use-before-define': 0, | ||
'no-undef': 0, | ||
'no-use-before-define': 0, | ||
'no-undef': 0, | ||
'@typescript-eslint/unbound-method': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': 0, | ||
'@typescript-eslint/no-unsafe-assignment': 0, | ||
'@typescript-eslint/no-unsafe-member-access': 0, | ||
'@typescript-eslint/no-unsafe-call': 0, | ||
'@typescript-eslint/no-unsafe-return': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
}, | ||
}, | ||
], | ||
'@typescript-eslint/unbound-method': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': 0, | ||
'@typescript-eslint/no-unsafe-assignment': 0, | ||
'@typescript-eslint/no-unsafe-member-access': 0, | ||
'@typescript-eslint/no-unsafe-call': 0, | ||
'@typescript-eslint/no-unsafe-return': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
}, | ||
}; |
{ | ||
"name": "@anexia/eslint-config-marine", | ||
"version": "1.1.1", | ||
"version": "2.0.0", | ||
"description": "Typescript ESLint shareable config", | ||
@@ -26,19 +26,24 @@ "main": "index.js", | ||
"dependencies": { | ||
"@anexia/eslint-config-aqua": "^1.1.0" | ||
"@anexia/eslint-config-aqua": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@angular-eslint/builder": "^1.2.0", | ||
"@angular-eslint/eslint-plugin": "^1.2.0", | ||
"@angular-eslint/eslint-plugin-template": "^1.2.0", | ||
"@angular-eslint/template-parser": "^1.2.0", | ||
"@types/node": "^14.14.32", | ||
"@typescript-eslint/eslint-plugin": "^4.16.1", | ||
"@typescript-eslint/parser": "^4.16.1", | ||
"eslint": "^7.21.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-vue": "^7.7.0", | ||
"prettier": "^2.2.1", | ||
"typescript": "^4.2.3" | ||
"@angular-eslint/builder": "^12.0.0", | ||
"@angular-eslint/eslint-plugin": "^12.0.0", | ||
"@angular-eslint/eslint-plugin-template": "^12.0.0", | ||
"@angular-eslint/template-parser": "^12.0.0", | ||
"@babel/eslint-parser": "^7.14.2", | ||
"@types/node": "^15.3.0", | ||
"@typescript-eslint/eslint-plugin": "^4.24.0", | ||
"@typescript-eslint/parser": "^4.24.0", | ||
"eslint": "^7.26.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"eslint-plugin-react": "^7.23.2", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"eslint-plugin-svelte3": "^3.2.0", | ||
"eslint-plugin-vue": "^7.9.0", | ||
"prettier": "^2.3.0", | ||
"typescript": "^4.2.4", | ||
"vue-eslint-parser": "^7.6.0" | ||
} | ||
} |
const path = require('path'); | ||
module.exports = { | ||
extends: [path.join(__dirname, '..', 'angular.js'), path.join(__dirname, 'prettier.js')], | ||
extends: [path.join(__dirname, '..', 'angular.js'), path.join(__dirname, '..', 'prettier.js')], | ||
}; |
const path = require('path'); | ||
module.exports = { | ||
extends: [path.join(__dirname, '..', 'index.js'), path.join(__dirname, 'prettier.js')], | ||
extends: [path.join(__dirname, '..', 'index.js'), path.join(__dirname, '..', 'prettier.js')], | ||
}; |
const path = require('path'); | ||
module.exports = { | ||
extends: [path.join(__dirname, '..', 'jsx.js'), '@anexia/eslint-config-aqua/prettier/jsx', path.join(__dirname, 'prettier.js')], | ||
extends: [path.join(__dirname, '..', 'jsx.js'), path.join(__dirname, '..', 'prettier.js')], | ||
}; |
const path = require('path'); | ||
module.exports = { | ||
extends: [path.join(__dirname, '..', 'node.js'), path.join(__dirname, 'prettier.js')], | ||
extends: [path.join(__dirname, '..', 'node.js'), path.join(__dirname, '..', 'prettier.js')], | ||
}; |
const path = require('path'); | ||
module.exports = { | ||
extends: [ | ||
path.join(__dirname, '..', 'react.js'), | ||
'@anexia/eslint-config-aqua/prettier/react', | ||
path.join(__dirname, 'prettier.js'), | ||
], | ||
extends: [path.join(__dirname, '..', 'react.js'), path.join(__dirname, '..', 'prettier.js')], | ||
}; |
const path = require('path'); | ||
module.exports = { | ||
extends: [ | ||
path.join(__dirname, '..', 'vue.js'), | ||
'@anexia/eslint-config-aqua/prettier/vue', | ||
path.join(__dirname, 'prettier.js'), | ||
], | ||
extends: [path.join(__dirname, '..', 'vue.js'), path.join(__dirname, '..', 'prettier.js')], | ||
}; |
@@ -17,6 +17,5 @@ { | ||
"allowJs": true, | ||
"checkJs": true | ||
}, | ||
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.vue", "**/*.ts", "**/*.js", "**/*.vue"], | ||
"exclude": ["**/node_modules", "**/dist"] | ||
"checkJs": true, | ||
"noUnusedLocals": true | ||
} | ||
} |
11
vue.js
const path = require('path'); | ||
module.exports = { | ||
extends: ['@anexia/eslint-config-aqua/vue', path.join(__dirname, 'index.js'), 'plugin:vue/recommended'], | ||
extends: ['@anexia/eslint-config-aqua/vue', path.join(__dirname, 'index.js')], | ||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
sourceType: 'module', | ||
extraFileExtensions: ['.vue'], | ||
}, | ||
rules: { | ||
'no-unused-vars': 0, | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'no-unused-labels': 0, | ||
'no-label-var': 0, | ||
}, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11529
18
200
+ Added@anexia/eslint-config-aqua@2.0.1(transitive)
- Removed@anexia/eslint-config-aqua@1.1.0(transitive)