@frankrecalde/es-css-lint-config

0.0.5 • Public • Published

Publish Package to npmjs

JS and CSS lint configuration

JS and CSS lint configuration for projects

Usage

npm i --save-dev @frankrecalde/es-css-lint-config

.eslintrc

{
  "extends": ["@frankrecalde/es-css-lint-config/drupal"],
  "root": true
}

.stylelintrc

{
  "extends": ["@frankrecalde/es-css-lint-config/style"]
}

.prettierrc.js

module.exports = {
  ...require("@frankrecalde/es-css-lint-config/prettier"),
};

or

package.json

{
  "devDependencies": {
    "@frankrecalde/es-css-lint-config": "^0.0.1"
  },
  "eslintConfig": {
    "extends": ["@frankrecalde/es-css-lint-config/drupal"],
    "root": true
  },
  "stylelint": { "extends": ["@frankrecalde/es-css-lint-config/style"] },
  "prettier": "@frankrecalde/es-css-lint-config/prettier"
}

Vscode

Recommended addons

  • EsLint
  • Prettier - Code formatter
  • Stylelint

Recommended settings

  "[javascript]": {
    "editor.formatOnSave": false,
    "editor.formatOnType": false,
    "editor.formatOnPaste": false,
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
    },
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[scss]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": false,
    "editor.formatOnPaste": false,
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.codeActionsOnSave": {
      "source.fixAll.stylelint": true
    }
  },
  "[vue]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": false,
    "editor.formatOnPaste": false,
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true,
      "source.fixAll.stylelint": true
    },
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "javascript.format.insertSpaceBeforeFunctionParenthesis": false,

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.52latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.52
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @frankrecalde/es-css-lint-config

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

16.8 kB

Total Files

11

Last publish

Collaborators

  • frankrecalde