Socket
Socket
Sign inDemoInstall

eslint-config-mattor

Package Overview
Dependencies
244
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-mattor

Mattor's opinionated ESLint config


Version published
Weekly downloads
5
Maintainers
1
Install size
7.60 kB
Created
Weekly downloads
 

Readme

Source

Mattor's opinionated ESLint config

Install scripts-linting

npm i babel-eslint eslint eslint-config-mattor @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks typescript --save-dev

.eslintrc

{
    "extends": [
        "mattor"
    ]
}

Install styles-linting

npm i stylelint stylelint-config-standard --save-dev

stylelint.config.js

const config = require("eslint-config-mattor/stylelint.config")

module.exports = config

package.json

"scripts": {
    "lint": "npm run lint:scripts && npm run lint:styles",
    "lint:scripts": "eslint . --report-unused-disable-directives --fix",
    "lint:styles": "stylelint \"**/*.{css,scss}\" --fix",
},

FAQs

Last updated on 29 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc