mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	tweaks to eslint
This commit is contained in:
		@@ -39,8 +39,7 @@
 | 
				
			|||||||
        const errors = new eslint().verify(text, {
 | 
					        const errors = new eslint().verify(text, {
 | 
				
			||||||
            root: true,
 | 
					            root: true,
 | 
				
			||||||
            parserOptions: {
 | 
					            parserOptions: {
 | 
				
			||||||
                ecmaVersion: 2017,
 | 
					                ecmaVersion: 2017
 | 
				
			||||||
                sourceType: 'module'
 | 
					 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            extends: ['eslint:recommended', 'airbnb-base'],
 | 
					            extends: ['eslint:recommended', 'airbnb-base'],
 | 
				
			||||||
            env: {
 | 
					            env: {
 | 
				
			||||||
@@ -49,11 +48,11 @@
 | 
				
			|||||||
            rules: {
 | 
					            rules: {
 | 
				
			||||||
                'import/no-unresolved': 'off',
 | 
					                'import/no-unresolved': 'off',
 | 
				
			||||||
                'func-names': 'off',
 | 
					                'func-names': 'off',
 | 
				
			||||||
                'comma-dangle': ['error'],
 | 
					                'comma-dangle': ['warn'],
 | 
				
			||||||
                'padded-blocks': 'off',
 | 
					                'padded-blocks': 'off',
 | 
				
			||||||
                'linebreak-style': 'off',
 | 
					                'linebreak-style': 'off',
 | 
				
			||||||
                'class-methods-use-this': 'off',
 | 
					                'class-methods-use-this': 'off',
 | 
				
			||||||
                'no-unused-vars': ['error', { vars: 'local', args: 'after-used' }],
 | 
					                'no-unused-vars': ['warn', { vars: 'local', args: 'after-used' }],
 | 
				
			||||||
                'no-nested-ternary': 'off',
 | 
					                'no-nested-ternary': 'off',
 | 
				
			||||||
                'no-underscore-dangle': ['error', {'allow': ['_super', '_lookupFactory']}]
 | 
					                'no-underscore-dangle': ['error', {'allow': ['_super', '_lookupFactory']}]
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user