1.0.2 • Published 4 years ago
@ecoonline/eslint-config-ecoonline v1.0.2
eslint-config-ecoonline
Installation
The default export contains all default ESLint rules for JavaScript Standard Style , including the recommended ruleset for Vue, and the ones listed in the rules section .
Note: It requires some peerDependencies as well.
Install the package with:
npx install-peerdeps --dev @ecoonline/eslint-config-ecoonlineIf using npm < 5:
npm install -D @ecoonline/eslint-config-ecoonlineThen install the correct versions of each peerDependency package, which are listed by the command:
npm info "@ecoonline/eslint-config-ecoonline@latest" peerDependenciesUsage
Now add the config to either your package.json:
{
"eslintConfig": {
"extends": "@ecoonline/eslint-config-ecoonline"
}
}or to your .eslintrc:
{
"extends": "@ecoonline/eslint-config-ecoonline"
}or to your .eslintrc.js:
module.exports = {
extends: '@ecoonline/eslint-config-ecoonline'
}Assumptions
This ESLint configuration comes with some fundamental assumptions:
- vue.js environment
- browser environment
Despite some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom eslint config.