0.7.0 • Published 2 years ago

eslint-config-nayya v0.7.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Shared ESLint/Prettier/TypeScript configs

How to use this config in your project

  1. Install the package

    npx install-peerdeps --yarn --dev eslint-config-nayya
  2. Create your .eslintrc.js

    module.exports = { extends: 'eslint-config-nayya' };
  3. Create your .prettierrc.js

    module.exports = require('eslint-config-nayya/prettier.config');
  4. Create your tsconfig.json

    {
      "extends": "eslint-config-nayya/tsconfig.json",
      "include": ["src"]
    }

    NOTE: Replace "src" with the directory or directories that contain your TypeScript source.

  5. If you get an error about not being able to find tsconfig.json, try this instead for .eslintrc.js:

    const config = require('eslint-config-nayya');
    
    config.parserOptions.tsconfigRootDir = __dirname;
    
    module.exports = config;

Development

Use yarn link or yalc to test changes locally.

Add tests in test/ with the extension .test.ts or .test.tsx.

To run tests:

yarn test

NOTE: ESLint may output errors for files like .eslintrc.js in this repository. Use the test/ directory to test the linting.

Publishing

# To log in to npmjs.com
yarn login

# To publish a patch version
yarn publish --patch

# To publish a minor version
yarn publish --minor

# To publish a major version
yarn publish --major
0.7.0

2 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago