1.5.0 • Published 5 months ago

eslint-config-test-vitaliimd v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

eslint-config-newo

A shareable ESLint flat configuration used internally at Newo, now available for public use. It provides opinionated linting rules for JavaScript, TypeScript, and React projects.

Installation

npm install --save-dev eslint-config-newo eslint typescript-eslint 

Available Configurations

This package provides two ESLint configurations:

  • Base Configuration: Supports JavaScript and TypeScript.

  • React Configuration: Rules for React projects.

Usage

In your eslint.config.js file:

import tslint from 'typescript-eslint';
import newoEslintConfig from 'eslint-config-newo';

export default tslint.config(
    ...newoEslintConfig.configs.base,
    ...newoEslintConfig.configs.react,
    {
        files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
        languageOptions: {
            parserOptions: {
                project: "./tsconfig.json",
                ecmaFeatures: {
                    jsx: true,
                }
            }
        },
        settings: {
            'import-x/resolver': {
                typescript: {
                    project: "./tsconfig.json",
                }
            }
        }
    }
);

Included Plugins & Rules

Dependencies

This configuration includes the following ESLint plugins:

License

MIT