Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ESLint 9 #126

Merged
merged 3 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions examples/app-with-eslint9/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import i18next from 'eslint-plugin-i18next';

export default [
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
{
plugins: { i18next },
rules: {
'i18next/no-literal-string': ['error', { mode: 'all' }],
},
},
];
2 changes: 2 additions & 0 deletions examples/app-with-eslint9/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const a = 'hello';
console.log(a);
20 changes: 20 additions & 0 deletions examples/app-with-eslint9/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "app-with-eslint9",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"lint": "eslint index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"eslint-plugin-i18next": "link:/Users/edward/workspace/github/eslint-plugin-i18next"
},
"devDependencies": {
"@eslint/js": "^9.6.0",
"eslint": "^9.6.0",
"globals": "^15.8.0"
}
}
Loading
Loading