Package Exports
- eslint-config-touch4it
- eslint-config-touch4it/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-touch4it) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-config-touch4it
ESLint flat config for XO-based projects
Install
npm install --save-dev eslint-config-touch4itUsage (ESLint 9+ Flat Config)
1. Create a new eslint.config.js in your project root.
2. Import and use the configs you need:
import { defaultConfig } from 'eslint-config-touch4it';
export default [
...defaultConfig,
];Extended Example
import {
defaultConfig,
mochaConfig,
jsdocConfig,
nodeConfig,
} from 'eslint-config-touch4it';
const config = [
...defaultConfig,
...nodeConfig,
...mochaConfig.map(cfg => ({
files: ['test/**/*.js'],
...cfg,
})),
...jsdocConfig,
{
files: ['**/*.js'],
rules: {
'mocha/no-mocha-arrows': 'off'
},
ignores: [
"node_modules/",
".eslintcache",
".env",
".npm",
"package-lock.json",
]
},
];
export default config;