diff --git a/.jshintignore b/.jshintignore deleted file mode 100644 index e4e06258aa..0000000000 --- a/.jshintignore +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors -# SPDX-FileCopyrightText: 2016 ownCloud, Inc. -# SPDX-License-Identifier: AGPL-3.0-only -node_modules -l10n -vendor -js/vendor -js/mail.min.js diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 6064554999..0000000000 --- a/.jshintrc +++ /dev/null @@ -1,29 +0,0 @@ -{ - "camelcase": false, - "eqeqeq": true, - "immed": true, - "latedef": false, - "noarg": true, - "nonbsp": true, - "undef": true, - "unused": true, - "trailing": true, - "maxparams": 5, - "curly": true, - "maxlen": 120, - "indent": 4, - "browser": true, - "globals": { - "console": true, - "it": true, - "xit": true, - "expect": true, - "describe": true, - "define": true, - "beforeEach": true, - "afterEach": true, - "require": true - }, - "esversion": 6, - "asi": true -} diff --git a/.nextcloudignore b/.nextcloudignore index a2ab416752..e07c153285 100644 --- a/.nextcloudignore +++ b/.nextcloudignore @@ -17,10 +17,6 @@ codecov.yml .hg /issue_template.md /jest.config.js -/.jscsrc -/.jshintignore -/.jshintrc -/karma.conf.js /krankerl.toml /l10n/no-php /.tx @@ -30,7 +26,6 @@ codecov.yml /package.json /package-lock.json /phpunit*xml -/postcss.config.js /psalm.xml /rector.php /renovate.json diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index fef26e8b9b..0000000000 --- a/Gruntfile.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors - * SPDX-License-Identifier: AGPL-3.0-or-later - */ -/* global module */ -module.exports = function(grunt) { - // Project configuration. - grunt.initConfig({ - jshint: { - options: { - jshintrc: '.jshintrc' - }, - all: ['Gruntfile.js', 'js/*.js', 'js/models/*.js', 'js/views/*.js', - '!js/build/build.js', '!js/webpack.*.js'] - }, - karma: { - unit: { - configFile: 'karma.conf.js', - autoWatch: true - }, - continuous: { - configFile: 'karma.conf.js', - browsers: ['PhantomJS'], - singleRun: true, - } - } - }); - - // jshint - grunt.loadNpmTasks('grunt-contrib-jshint'); - - // Karma unit tests - grunt.loadNpmTasks('grunt-karma'); - - // Default task - grunt.registerTask('default', ['jshint', 'karma:continuous']); -}; diff --git a/karma.conf.js b/karma.conf.js deleted file mode 100644 index 34f38585cd..0000000000 --- a/karma.conf.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2016-2019 Nextcloud GmbH and Nextcloud contributors - * SPDX-FileCopyrightText: 2015-2016 owncloud, Inc. - * SPDX-License-Identifier: AGPL-3.0-or-later - */ -// Karma configuration -// Generated on Tue Sep 01 2015 13:54:51 GMT+0200 (CEST) - -var webpackConfig = require('./js/webpack.dev.config.js'); - -webpackConfig.entry = './js/tests/test_init.js'; -webpackConfig.module.rules.push({ - test: /\.js$/, - exclude: /init\.js/ -}); - -module.exports = function (config) { - config.set({ - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ['jasmine-ajax', 'jasmine', 'sinon'], - - files: [ - {pattern: 'js/tests/test-main.js', included: true}, - // all files ending in "_test" - {pattern: 'js/tests/*_spec.js', watched: false}, - {pattern: 'js/tests/**/*_spec.js', watched: false}, - {pattern: 'js/build/build.js', included: false} - ], - - // list of files to exclude - exclude: [ - 'js/webpack.*.js', - 'js/init.js' - ], - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - 'js/**[!vendor]/*[!spec].js': ['coverage', 'sourcemap'], - // add webpack as preprocessor - 'js/tests/*_spec.js': ['webpack', 'sourcemap'], - 'js/tests/**/*_spec.js': ['webpack', 'sourcemap'] - }, - - webpackMiddleware: { - // webpack-dev-middleware configuration - // i. e. - stats: 'errors-only' - }, - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress', 'coverage'], - coverageReporter: { - type: 'lcov', - dir: 'coverage/' - }, - // web server port - port: 9876, - // enable / disable colors in the output (reporters and logs) - colors: true, - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - // enable / disable watching file and executing tests whenever any file changes - autoWatch: true, - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['PhantomJS'], - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - webpack: webpackConfig - }); -}; diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index 0c640e777f..0000000000 --- a/postcss.config.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors - * SPDX-License-Identifier: AGPL-3.0-or-later - */ -module.exports = { - plugins: { - autoprefixer: {} - } -}