Git Product home page Git Product logo

evgenyorekhov / eslint-config-hardcore Goto Github PK

View Code? Open in Web Editor NEW
389.0 5.0 13.0 4.79 MB

The most strict (yet practical) ESLint config. 53 plugins. 1333 rules. React, Vue, Node, and pure JS/TS.

Home Page: https://www.npmjs.com/package/eslint-config-hardcore

License: MIT License

JavaScript 62.07% HTML 20.25% TypeScript 8.59% Vue 9.09%
shareable-configs eslint config eslintconfig eslint-config hardcore code-quality

eslint-config-hardcore's People

Contributors

alexkramer98 avatar dependabot-preview[bot] avatar dependabot[bot] avatar evgenyorekhov avatar jonataswalker avatar pmcelhaney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eslint-config-hardcore's Issues

Perhaps the "object-property-newline" rule is too strict

Compare:

h(
    Component,
    {
        someProp: 123,
        anotherProp: 321
    },
    [
        h(Component, {
            someProp: 123,
            anotherProp: 321
        }),
        h(Component, {
            someProp: 123,
            anotherProp: 321
        }),
        h(
            Component,
            {
                someProp: 123,
                anotherProp: 321
            },
            [
                h(Component, {
                    someProp: 123,
                    anotherProp: 321
                }),
                h(Component, {
                    someProp: 123,
                    anotherProp: 321
                })
            ]
        )
    ]
);
h(Component, {someProp: 123, anotherProp: 321}, [
    h(Component, {someProp: 123, anotherProp: 321}),
    h(Component, {someProp: 123, anotherProp: 321}),
    h(Component, {someProp: 123, anotherProp: 321}, [
        h(Component, {someProp: 123, anotherProp: 321}),
        h(Component, {someProp: 123, anotherProp: 321})
    ])
]);

Perhaps the "object-property-newline" rule should be reconfigured to

["error", {"allowAllPropertiesOnSameLine": true}]

Add smoke test

  1. Create .eslintrc.json file with the following contents: {"extends": ["./index.json"]}.
  2. Change the test script to node test.js && eslint **/*.js.

Relax no-shadow rule

"hoist": "all" seems too strict. Perhaps it should have the default functions value.

Or not?

Note: JSLint works the same as the all value.

Add more configs

One would use them like this:

{
    "extends": ["hardcore", "hardcore/fp"],
    "overrides": [
        {
            "files": ["server/**/*.js"],
            "extends": ["hardcore/node"]
        }
    ]
}

Conflict with index files

There is a conflict between import/extensions, import/no-useless-path-segments, and unicorn/import-index, when referencing index files, e. g. ./index.js.

Automate releasing

The simplest way is

"preversion": "npm test",
"postversion": "git push && git push --tags && npm publish"

Investigate:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.