This package has been deprecated

Author message:

eslint-config-ryuuki has been deprecated. Changed to Ruppy ESLint configs. See: https://github.com/Ruppyio/eslint-configs

eslint-config-ryuuki

2.6.1 • Public • Published

Ryuuki's ESlint Config

NPM Version NPM License

Description

This config extend react-app's config with my personal preferences.

Usage

  1. Install with commands:

    yarn add -D eslint-config-ryuuki @typescript-eslint/eslint-plugin@2.x @typescript-eslint/parser@2.x babel-eslint@10.x eslint@6.x eslint-config-prettier@6.x eslint-plugin-flowtype@4.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-prettier@3.x eslint-plugin-react@7.x eslint-plugin-react-hooks@2.x prettier@1.x

    optionally add typescript as devDependencies if you use typescript as language:

    yarn add -D typescript
  2. Create .eslintrc.yml file in root directory:

    extends: ryuuki

    or .eslintrc.js file in root directory:

    module.exports = {
      extends: ['ryuuki'],
    };
  3. Create .prettierrc file in root directory:

    {
      "semi": true,
      "tabWidth": 2,
      "useTabs": false,
      "printWidth": 80,
      "singleQuote": true,
      "bracketSpacing": true,
      "jsxSingleQuote": false,
      "jsxBracketSameLine": false,
      "quoteProps": "as-needed",
      "trailingComma": "es5",
      "arrowParens": "avoid",
      "endOfLine": "lf"
    }
  4. (Optional) Create .editorconfig file in root directory:

    # http://editorconfig.org
    root = true
    
    [*]
    indent_style = space
    indent_size = 2
    end_of_line = lf
    charset = utf-8
    trim_trailing_whitespace = true
    insert_final_newline = true
    max_line_length = off
    
    # Use 4 spaces for the Python and HTML files
    [*.py, *.html]
    indent_size = 4
    
    # Minified JavaScript files shouldn't be changed
    [**.min.js]
    indent_style = ignore
    insert_final_newline = ignore
    
    [*.md]
    trim_trailing_whitespace = false

Hacking to the Gate~

Package Sidebar

Install

npm i eslint-config-ryuuki

Weekly Downloads

0

Version

2.6.1

License

MIT

Unpacked Size

6.72 kB

Total Files

9

Last publish

Collaborators

  • ryuukibeat