Giter Club home page Giter Club logo

eslint-config's Introduction






CLARK




CLARK's eslint-config

Build Status code style: prettier CLARK Open Source

This repo contains all of CLARK's eslint configuration presets.

There are also a few more configs, plugins and utils in this repository:

eslint-config's People

Contributors

buschtoens avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar gossi avatar ijlee2 avatar makepanic avatar vasilioruzanni avatar windvis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

makepanic

eslint-config's Issues

Declare support for node 14?

Hi,

Thanks for maintaining this useful package.
I noticed that the packages declare node engine support with ^10.0 || ^12.0 || ^13.0.
Node 13 was no LTS version and is currently outside its maintenance time frame. ( https://nodejs.org/en/about/releases/ )

Would it be ok if I create a PR to also add 14 to the engine list? Node 14 will enter active LTS phase in 2020-10-20.

node lts

Basic demo

Hey @buschtoens this looks super promising - trying to figure out how to configure ESLint on a workspace.

Would you be able to add some basic usage demo to README? ๐Ÿ™๐Ÿผ

Use `overrides` so that a single `.eslintrc.js` is sufficient

'use strict';

// @TODO this can be removed once `trailingComma` is enabled upstream by default
const prettierTrailingComma = {
  'prettier/prettier': [
    'error',
    require('@clark/prettier-config/trailing-comma'),
  ],
};

// @TODO this can be removed once the following is fixed
// https://github.com/mysticatea/eslint-plugin-node/issues/77
const fixNoUnpublishedRequire = {
  'node/no-unpublished-require': 'off',
};

module.exports = {
  root: true,
  overrides: [
    {
      files: ['app/**/*.{js,ts}', 'tests/**/*.{js,ts}', 'types/**/*.{js,ts}'],
      extends: '@clark/ember-typescript',
      rules: { ...prettierTrailingComma },
    },
    {
      files: ['public/**/*.js', 'vendor/**/*.js'],
      extends: '@clark/browser',
      rules: { ...prettierTrailingComma },
    },
    {
      files: [
        './*.js',
        'blueprints/*/index.js',
        'config/**/*.js',
        'lib/*/index.js',
        'server/**/*.js',
      ],
      extends: '@clark/node',
      rules: {
        ...prettierTrailingComma,
        ...fixNoUnpublishedRequire,
      },
    },
  ],
};

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.