1.4.6 • Published 4 years ago

@forter/eslint-config v1.4.6

Weekly downloads
17
License
Apache-2.0
Repository
github
Last release
4 years ago

Linting ESLint

Use ESLint to lint your es6 code.

👨‍🏭Installation

  • Install @forter/eslint
npm i @forter/eslint-config --save-dev
  • Adjust your package.json with the following
    {
      "scripts": {
        "lint:eslint": "eslint --ext .js,.html . --ignore-path .gitignore",
        "format:eslint": "eslint --ext .js,.html . --fix --ignore-path .gitignore"
      },
      "eslintConfig": {
        "extends": [
          "@forter/eslint-config"
        ]
      }
    }

👩‍🚀 What you get

Extends eslint-config-google.

This will install @forter/eslint-config, a config based on google but allows for some specialities needed for Web Components.

  • Apply linting to js and html files
  • Apply linting for best practices
  • Allow dynamic module imports
  • Allow imports in test/demos from devDependencies
  • Allow underscore dangle
  • Do not prefer default exports
  • Do not prefer no file extension

👨‍💻 Usage

Run:

  • npm run lint:eslint to check if any file is not correctly formatted
  • npm run format:eslint to auto format your files
<script>
  export default {
    mounted() {
      const editLink = document.querySelector('.edit-link a');
      if (editLink) {
        const url = editLink.href;
        editLink.href = url.substr(0, url.indexOf('/master/')) + '/master/packages/eslint-config/README.md';
      }
    }
  }
</script>
1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

2.0.0

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-alpha.0

5 years ago