Skip to content

Commit

Permalink
Example: Add legacy config
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Nov 27, 2024
1 parent c2193c4 commit 4fde02d
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 31 deletions.
21 changes: 0 additions & 21 deletions examples/eslint-flat-config/eslint.config.js

This file was deleted.

9 changes: 0 additions & 9 deletions examples/eslint-flat-config/package.json

This file was deleted.

26 changes: 26 additions & 0 deletions examples/eslint-legacy/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const { resolve } = require('node:path')

/** @type {import('eslint').Linter.LegacyConfig} */
module.exports = {
extends: [
'@master/css',
],
settings: {
'@master/css': {
config: resolve(__dirname, 'master.css')
}
},
overrides: [
{
files: [ '*.html'],
parser: '@angular-eslint/template-parser'
}
],
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": false,
"eslint.validate": [
"html",
"php",
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions examples/eslint-legacy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "master-css-eslint-legacy-example",
"scripts": {
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint \"*.html\""
},
"devDependencies": {
"@angular-eslint/template-parser": "^18.4.2",
"@master/eslint-config-css": "workspace:^",
"eslint": "^8.57.0"
}
}
File renamed without changes.

0 comments on commit 4fde02d

Please sign in to comment.