Skip to content

A base eslint config for use across Galexia's projects.

Notifications You must be signed in to change notification settings

Galexia-Agency/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eslint Config

A base eslint config for use across Galexia's projects

Install

yarn add eslint eslint-config-galexia@https://github.com/Galexia-Agency/eslint-config --dev

.eslintrc

{
  "extends": [
   "galexia"
  ]
}

Scripts

package.json

"scripts": {
    "lint:scripts": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "fix:scripts": "eslint --ext .js,.vue --ignore-path .gitignore . --fix"
}

Configuring with Nuxt 2

yarn add @nuxtjs/eslint-module eslint --dev

nuxt.config.js

...
modules: [
    '@nuxtjs/eslint-module',
]
...

.eslintrc

{
  "env": {
    "node": true
  },
  "extends": [
   "galexia"
  ]
}

Configuring with Nuxt 3

yarn add @nuxtjs/eslint-module @nuxtjs/eslint-config-typescript @typescript-eslint/parser eslint --dev

nuxt.config.ts

...
modules: [
    '@nuxtjs/eslint-module',
]
...

.eslintrc

{
  "env": {
    "node": true
  },
  "extends": [
    "galexia",
    "@nuxtjs/eslint-config-typescript"
  ],
  "parserOptions": {
    "parser": "@typescript-eslint/parser"
  }
}

Configuring with VSCode

  1. Install dbaeumer.vscode-eslint
  2. Add vue to Probe plugin settings.
  3. Add the following to .vscode/settings.json
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

About

A base eslint config for use across Galexia's projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •