npm.io
28.0.3 • Published 3 months ago

eslint-config-tc

Licence
MIT
Version
28.0.3
Deps
0
Size
56 kB
Vulns
0
Weekly
0
Stars
3

eslint-config-tc

ESLint shareable config for JavaScript projects

license npm ci

What is eslint-config-tc?

Shared configuration for ESLint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file.

How do I install it?

First thing first, let's make sure you have the necessary pre-requisites.

System Dependencies
Node
Command
npx install-peerdeps --dev eslint-config-tc

@eslint/js, eslint, eslint-plugin-import-x, eslint-plugin-jest, eslint-plugin-prettier, eslint-plugin-unicorn, and prettier are peer dependencies and must be installed.

Usage

This package exports a flat config array for use with ESLint 10+. Create an eslint.config.mjs file in your project root:

import tcConfig from 'eslint-config-tc';

export default [
  ...tcConfig,
];

If you need to override a rule, add a config object after spreading:

import tcConfig from 'eslint-config-tc';

export default [
  ...tcConfig,
  {
    rules: {
      eqeqeq: 'off',
    },
  },
];

Contributing

Please see CONTRIBUTING.md.

Release History

Please see CHANGELOG.md.

License

Copyright (c) 2016-2026 Thomas Lindner. Licensed under the MIT license.