@cran/etc.eslint
v0.2.3
Published
ESLint Baseline Configuration
Downloads
56
Maintainers
Readme
ESLint Baseline Configurations
Setup
// eslint.config.js
const { prebuilt, } = require("@cran/etc.eslint");
module.exports = prebuilt.browser;
Override Prebuilts
// eslint.config.js
const { prebuilt, } = require("@cran/etc.eslint");
module.exports = [
...prebuilt.browser,
{
file: [ "**/*.js", ],
rules: {
semi: [ "error", "always", ],
},
},
];
Advanced Setup
// eslint.config.js
const { rules, } = require("@cran/etc.eslint");
module.exports = [ {
files: [ "src/**/*.js", ],
rules: rules.js
}, ];
Override Advanced Setup
// eslint.config.js
const { rules, } = require("@cran/etc.eslint");
module.exports = [ {
files: [ "src/**/*.js", ],
rules: {
...rules.js,
semi: [ "error", "always", ],
}
}, ];
Structure
- language
- js
- jsAsTs
- ts
- vue
- vueAsXsx
- prebuilt
- browser
- node
- vue
- rules
- js
- ts
- vue