@robot-inventor/eslint-config v6.0.10
eslint-config
@Robot-Inventor's ESLint config preset.
Installation
Then, install the package:
npm install --save-dev @robot-inventor/eslint-config
Usage
Add the following to your eslint.config.js
file:
// ESModule
import { eslintConfig } from "@robot-inventor/eslint-config";
export default eslintConfig;
// CommonJS
const { eslintConfig } = require("@robot-inventor/eslint-config");
module.exports = eslintConfig;
If you don't need JSDoc rules, you can use the eslintConfigNoJSDoc
instead.
// ESModule
import { eslintConfigNoJSDoc } from "@robot-inventor/eslint-config";
export default eslintConfigNoJSDoc;
// CommonJS
const { eslintConfigNoJSDoc } = require("@robot-inventor/eslint-config");
module.exports = eslintConfigNoJSDoc;
You can extend or override the config as needed.
// ESModule
import { eslintConfig } from "@robot-inventor/eslint-config";
export default [
...eslintConfig,
{
rules: {
// Your rules here
}
}
];
// CommonJS
const { eslintConfig } = require("@robot-inventor/eslint-config");
module.exports = [
...eslintConfig,
{
rules: {
// Your rules here
}
}
];
8 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
10 months ago
10 months ago
10 months ago
12 months ago
12 months ago
12 months ago
12 months ago
10 months ago
1 year ago
1 year ago
1 year ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago