@cis-1962/eslint-config
v1.0.9
Published
ESLint config used to grade CIS-1962 assignments
Downloads
13
Readme
CIS-1962 ESLint config
Usage
For a plain Node.js project, use the following .eslintrc.js
:
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: ['@cis-1962/eslint-config/node'],
};
For a TypeScript project:
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: ['@cis-1962/eslint-config/typescript'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
},
};
For a React (with TypeScript) project:
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: ['@cis-1962/eslint-config/react'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
},
};