@speedy-js/eslint-config

0.1.4 • Public • Published

@speedy-js/eslint-config

npm version

ESLint config for Speedy Framework Developers

Features

  • Indent with 2 spaces and always semicolon
  • Best practice with jstsreact or their bundle!

Install

npm i -D @speedy-js/eslint-config
# OR: npm install -D eslint @speedy-js/eslint-config

Usage

Lint All

In .eslintrc.js:

module.exports = {
  extends: ["@speedy-js/eslint-config"],
};

This enable lint for both jsts and react! you'll also need typescript as a devDependnecy at your project.

Lint TypeScript

In .eslintrc.js:

module.exports = {
  extends: ["@speedy-js/eslint-config/ts"],
};

You need specify --ext explicitly to enable TypeScript linting:

{
  "lint": "eslint src/** --ext .js,.jsx,.ts,.tsx --fix"
}

Lint JavaScript

In .eslintrc.js:

module.exports = {
  extends: ["@speedy-js/eslint-config/js"],
};

Lint React

In .eslintrc.js:

module.exports = {
  extends: ["@speedy-js/eslint-config/react"],
};

License

MIT © ULIVZ

Package Sidebar

Install

npm i @speedy-js/eslint-config

Weekly Downloads

2

Version

0.1.4

License

none

Unpacked Size

15.2 kB

Total Files

7

Last publish

Collaborators

  • derozan
  • arrayzoneyour
  • ahaoboy
  • zhusj
  • upupming
  • amour1688
  • null~
  • thisispluto
  • zoolsher
  • ulivz
  • hardfist