mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 03:36:39 +00:00
update eslint stack to ts-compatible v9
This commit is contained in:
parent
5c711c5794
commit
05a29c2287
|
@ -1,3 +0,0 @@
|
|||
node_modules
|
||||
prism.js
|
||||
prism.css
|
|
@ -17,15 +17,23 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
"extends": ["@joepie91/eslint-config/react"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": ["@typescript-eslint", "license-header"],
|
||||
"rules": {
|
||||
"license-header/header": ["error", __dirname + "/.license-header.js"],
|
||||
"no-console": 'error'
|
||||
module.exports = [
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
project: true,
|
||||
ecmaFeatures: {
|
||||
jsx: true
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: {
|
||||
"license-header": require("eslint-plugin-license-header")
|
||||
},
|
||||
rules: {
|
||||
"license-header/header": ["error", __dirname + "/.license-header.js"]
|
||||
}
|
||||
},
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
}
|
||||
};
|
||||
...require("@f0x52/eslint-config")
|
||||
];
|
|
@ -6,7 +6,7 @@
|
|||
"author": "f0x",
|
||||
"license": "AGPL-3.0",
|
||||
"scripts": {
|
||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
||||
"lint": "eslint",
|
||||
"build": "node index.js",
|
||||
"dev": "NODE_ENV=development node index.js",
|
||||
"prepare": "ts-patch install"
|
||||
|
@ -47,7 +47,7 @@
|
|||
"@babel/preset-typescript": "^7.24.1",
|
||||
"@browserify/envify": "^6.0.0",
|
||||
"@browserify/uglifyify": "^6.0.0",
|
||||
"@joepie91/eslint-config": "^1.1.1",
|
||||
"@f0x52/eslint-config": "^2.0.9",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
"@types/is-valid-domain": "^0.0.2",
|
||||
"@types/papaparse": "^5.3.9",
|
||||
|
@ -56,27 +56,21 @@
|
|||
"@types/react": "^18.3.12",
|
||||
"@types/react-dom": "^18.3.1",
|
||||
"@types/sanitize-html": "^2.11.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
||||
"@typescript-eslint/parser": "^6.7.4",
|
||||
"@types/semver": "^7.5.8",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"babelify": "^10.0.0",
|
||||
"css-extract": "^2.0.0",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint": "^9.14.0",
|
||||
"eslint-plugin-license-header": "^0.6.0",
|
||||
"eslint-plugin-react": "^7.31.10",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"factor-bundle": "^2.5.0",
|
||||
"icssify": "^2.0.0",
|
||||
"postcss": "^8.4.18",
|
||||
"postcss-custom-prop-vars": "^0.0.5",
|
||||
"postcss-import": "^15.0.0",
|
||||
"postcss-nested": "^6.0.0",
|
||||
"source-map-loader": "^4.0.1",
|
||||
"ts-loader": "^9.4.4",
|
||||
"ts-node": "^10.9.1",
|
||||
"ts-patch": "^3.2.1",
|
||||
"tsify": "^5.0.4",
|
||||
"typescript": "^5.6.3",
|
||||
"typia": "^6.11.3"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue