@xola/jslint
v3.2.0
Published
Sharable ESLint configuration for Xola's Javascript & Typescript code
Keywords
Readme
ESLint Configuration
This repository serves as the source for all of Xola's ESLint configuration
Installation
Install the @xola/jslint package as a devDependency in your host project.
npm install -D @xola/jslintSetup
To use the shared config, import the package inside of an eslint.config.mjs file and add it into the exported array, like this:
// eslint.config.mjs
import xolaLint from '@xola/jslint';
export default [
...xolaLint,
];Overriding settings from the shared config
You can override settings from the shareable config by adding them directly into your eslint.config.mjs file after importing the shareable config. For example:
// eslint.config.mjs
import xolaLint from '@xola/jslint';
export default [
...xolaLint,
// anything from here will override xolaLint
{
rules: {
'no-unused-vars': 'error',
}
}
];