@cycraft/eslint

0.3.0 • Public • Published

eslint

Shared TypeScript Eslint config for my projects

Install

npm i -D @cycraft/eslint

It will install these packages for you, so you don't have to include them in your package dependencies:

  • @eslint/js
  • @types/node
  • eslint
  • eslint-config-prettier
  • eslint-plugin-unicorn
  • prettier
  • prettier-plugin-jsdoc
  • typescript
  • typescript-eslint

Usage

eslint.config.js

import config from '@cycraft/eslint/config'

export default config

.prettierrc.js

import prettier from '@cycraft/eslint/prettier'

export default prettier

Update Eslint Config

import config from '@cycraft/eslint/config'

export default [
  {
    ignores: ['**/dist/*'],
  },
  ...config,
  {
    files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
    rules: {
      '@typescript-eslint/no-explicit-any': 'off',
    },
  },
]

Package Sidebar

Install

npm i @cycraft/eslint

Weekly Downloads

44

Version

0.3.0

License

MIT

Unpacked Size

2.86 kB

Total Files

4

Last publish

Collaborators

  • hunterliu1003
  • robingenz
  • egoist
  • mesqueeb