altheajs-eslint-config
Advanced tools
Comparing version 1.0.2 to 1.0.3
39
index.js
@@ -1,1 +0,38 @@ | ||
console.log('eslint config') | ||
module.exports = { | ||
extends: [ | ||
// https://www.npmjs.com/package/eslint-config-airbnb-typescript | ||
'airbnb-typescript', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'plugin:vue/essential', | ||
], | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
project: './tsconfig.json', | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'@typescript-eslint', | ||
'vue', | ||
], | ||
rules: {}, | ||
overrides: [ | ||
{ | ||
files: ['*.js'], | ||
rules: { | ||
// Warn `require()` | ||
'@typescript-eslint/no-var-requires': 'warn', | ||
}, | ||
}, | ||
], | ||
}; |
{ | ||
"name": "altheajs-eslint-config", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "An eslint config, what else?", | ||
@@ -18,3 +18,14 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/drewcook/eslint-config#readme" | ||
"homepage": "https://github.com/drewcook/eslint-config#readme", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.28.3", | ||
"@typescript-eslint/parser": "^4.28.3", | ||
"eslint": "^7.30.0", | ||
"eslint-config-airbnb-typescript": "^12.3.1", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.24.0", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"eslint-plugin-vue": "^7.13.0" | ||
} | ||
} |
@@ -41,2 +41,4 @@ # altheajs-eslint-config | ||
"extends": ["altheajs-eslint-config"], | ||
// if using typescript | ||
"parserOptions": { "project": "./tsconfig.json" } | ||
// ...more custom config overrides | ||
@@ -55,5 +57,5 @@ }; | ||
// check for linting errors | ||
"lint:quality": "eslint -c .eslintrc.js ./**/*", | ||
"lint:quality": "npx eslint -c .eslintrc.js . --ext .js,.jsx,.ts,.tsx" | ||
// fix and apply the rules to those that can be fixed | ||
"fix:quality": "eslint -c .eslintrc.js ./**/* --fix", | ||
"fix:quality": "npx eslint -c .eslintrc.js . --ext .js,.jsx,.ts,.tsx --fix", | ||
} | ||
@@ -60,0 +62,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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
10611
6
103
84
0
9