JSPM

  • Created
  • Published
  • Downloads 376
  • Score
    100M100P100Q102531F
  • License ISC

ESLint configuration for ES6+ projects based on XO

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

npm peer dependency version (scoped) GitHub license npm version node version vulnerabilities last commit

ESLint flat config for XO-based projects

Install

npm install --save-dev eslint-config-touch4it

Usage (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;

License

ISC © Touch4IT