File tree Expand file tree Collapse file tree 2 files changed +38
-9
lines changed
Expand file tree Collapse file tree 2 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ desktop.ini
2525* .log
2626* .sarif
2727
28+ /.gitconfig
29+
2830# VS Code files
2931/.vscode /launch.json
3032
@@ -49,7 +51,10 @@ user.gradle
4951/build
5052/cmdline
5153
54+ # Generated by docs/conf.py
5255/docs /_build /
56+ /docs /scripts /
57+ /docs /devel /
5358
5459# Custom project folders
5560/cache /
Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: GPL-3.0-or-later
33
44/* jshint esversion: 6 */
5- import {
6- defineConfig
7- }
8- from 'eslint/config' ;
5+ import js from '@eslint/js' ;
6+ import json from '@eslint/json' ;
7+ import markdown from '@eslint/markdown' ;
8+ import globals from 'globals' ;
9+ import { defineConfig } from 'eslint/config' ;
910
10- export default defineConfig ( [ {
11- languageOptions : {
12- ecmaVersion : 2022
13- }
14- } ] ) ;
11+ export default defineConfig ( [
12+ {
13+ files : [ '**/*.{js,mjs,cjs}' ] ,
14+ plugins : { js } ,
15+ extends : [ 'js/recommended' ] ,
16+ languageOptions : {
17+ globals : globals . node ,
18+ ecmaVersion : 2022 ,
19+ sourceType : 'module' ,
20+ } ,
21+ rules : {
22+ 'no-unused-vars' : 'warn' ,
23+ semi : [ 'error' , 'always' ] ,
24+ } ,
25+ } ,
26+ {
27+ files : [ '**/*.json' ] ,
28+ plugins : { json } ,
29+ language : 'json/json' ,
30+ extends : [ 'json/recommended' ] ,
31+ } ,
32+ {
33+ files : [ '**/*.md' ] ,
34+ plugins : { markdown } ,
35+ language : 'markdown/gfm' ,
36+ extends : [ 'markdown/recommended' ] ,
37+ } ,
38+ ] ) ;
You can’t perform that action at this time.
0 commit comments